﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MySql.Data.MySqlClient;
using Cinemon.MySqlConnect;

public partial class Rooms_shows : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        using (DatabaseManager manager = new DatabaseManager())
        {
            List<MySqlParameter> param = new List<MySqlParameter> {
				new MySqlParameter("roomid",Int32.Parse(Request.QueryString["id"]))
			};
            DataTable table = manager.ExecuteQuery("getShowList", param);
            showgrid.DataSource = table;
            showgrid.DataBind();
        }
    }
    protected void showgrid_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("view.aspx");
    }
}